package chapter05.exercise.enumtest;

/**
 * 枚举类型应用实例
 *
 * @author cinyi
 */
public class EnumOrder {

    public static void main(String[] args) {
        Spiciness[] spicinesses = Spiciness.values();
        for (Spiciness spiciness : spicinesses) {
            System.out.println(spiciness + " ordinal:" + spiciness.ordinal());
        }
    }
}
